home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 533 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.6 KB

  1. Subject: a few small BIOS IO patches, oops...
  2. Date: Sun, 10 Oct 93 14:01:10 CET
  3. From: Juergen Lock <nox@jelal.north.de>
  4. Message-Id: <9310101301.AA00138@jelal.north.de>
  5.  
  6. Juergen Lock writes:
  7.  
  8. > 2. auto-repeat on console doesn't generate keyboard interrupts and so
  9. > a select on the keyboard usually did not wake up before the key was
  10. > released (or timeout).  this was the reason for the often sluggish
  11. > response on vts...
  12. > Index: intr.spp
  13. > --- intr.spp_    Tue Aug 17 11:11:20 1993
  14. > +++ intr.spp    Sat Oct  9 14:05:34 1993
  15.  
  16. this patch works but only because it ends up setting kintr always :-)
  17. (keyrec is IOREC * not IOREC).  also i looked where repeat is done:
  18. before evnt_timer is called.  so i think this is a better place:
  19.  
  20. Index: timeout.c
  21. --- timeout.c_    Fri Jun 25 21:24:20 1993
  22. +++ timeout.c    Sun Oct 10 03:54:32 1993
  23. @@ -140,6 +140,10 @@
  24.   * suspends the current process
  25.   */
  26.  
  27. +/* variables for monitoring the keyboard */
  28. +extern IOREC_T    *keyrec;    /* keyboard i/o record pointer */
  29. +extern short    kintr;        /* keyboard interrupt pending (see intr.s) */
  30. +
  31.  volatile int our_clock = 1000;
  32.  
  33.  void ARGS_ON_STACK
  34. @@ -147,6 +151,8 @@
  35.  {
  36.      int ms;        /* time between ticks */
  37.  
  38. +    *(char *)&kintr = (keyrec->head != keyrec->tail) ? -1 : 0;
  39. +
  40.      ms = *((short *)0x442L);
  41.      if (proc_clock > 0)
  42.          proc_clock--;
  43.  
  44.  sorry,
  45.     Juergen
  46.  
  47. PS: to get rid of a bad patch just feed it thru patch again, it will ask
  48. if it should `un-patch'...
  49. -- 
  50. J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
  51.                                 ...ohne Gewehr
  52. PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA 
  53.